package com.scedu.spring5.collectiontype;

import java.util.List;

public class BookList {
    private List<String> list;

    public void setList(List<String> list) {
        this.list = list;
    }
    public void test(){
        for (String s : list) {
            System.out.println(s);
        }

    }
}
